package com.myl.core.domain.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.util.List;

/**
 * TablePageList
 * author: myl <ixiaomu@qq.com> 2023/12/29
 * tips:
 */
@Data
public class TablePageList implements Serializable{

    /**
     * 当前页码
     */
    private Long current;

    /**
     * 分页数
     */
    private Long lastPage;

    /**
     * 总数
     */
    private Long total;

    /**
     * 数据列表
     */
    private List<?> list;

    public TablePageList(Page<?> page)
    {
        this.total = page.getTotal();
        this.current = page.getCurrent();
        this.list = page.getRecords();
        this.lastPage = page.getPages();
    }



}
